const BASE_URL = 'http://qbyfmn.natappfree.cc'
export const myRequest = (options) => {
	return new Promise((resolve, reject) => {
		uni.request({
			url: BASE_URL + options.url,
			method: options.method || 'GET',
			data: options.data || {},
			header: options.header || '',
			responseType: options.responseType || '',
			success: (res) => {
				return resolve(res)
			},
			fail: (err) => {
				uni.showToast({
					title: '请求接口失败'
				})
				return reject(err)
			}

		})
	})
}
export const base_url = 'http://kpumrh.natappfree.cc'